import m1.server.Server;
import m1.server.ServeurConfig;
import m2.binding.BindingF;
import m2.binding.BindingR;
import m2.binding.TypeBinding;

public class ApplicationServeur extends Thread {

	ServeurConfig serveurConfig;
	Server server;
	BindingR bR;
	BindingF bF;

	public ApplicationServeur(){
		serveurConfig = new ServeurConfig();
		server= new Server();
		
		bF=new BindingF("bF",
				serveurConfig.getPortConfigFMap().get("ReceiveAnswerF"),
				server.getLesPortsFournis().get("Server.portFourni"),
				TypeBinding.PortComp2PortConf);
		bR=new BindingR("bR",
				serveurConfig.getPortConfigRMap().get("SendRequestR"),
				server.getLesPortsRequis().get("Server.portRequis"),
				TypeBinding.PortComp2PortConf);
		
	}

	public void run() {

	}

	public Server getServer() {
		return server;
	}

	public ServeurConfig getServeurConfig() {
		return serveurConfig;
	}
}
